﻿@model AplicacionTickets.Models.Espectaculo

@{
    ViewBag.Title = "Comprar";
}

<h2>Comprar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>@Html.DisplayFor(model => model.Titulo)</legend>

        @Html.HiddenFor(model => model.EspectaculoId)
        @Html.HiddenFor(model => model.ArtistaId)
        @Html.HiddenFor(model => model.LugarId)
        @Html.HiddenFor(model => model.Titulo)
        @Html.HiddenFor(model => model.Descripcion)
        @Html.HiddenFor(model => model.FechaHora)
        @Html.HiddenFor(model => model.FechaLimite)
        @Html.HiddenFor(model => model.Estado)
        @Html.HiddenFor(model => model.PrecioEGen)
        @Html.HiddenFor(model => model.PrecioENum)
        @Html.Hidden("EspectaculoImageUrl", User.Identity.Name)


        <div class="label">Cantidad a Comprar</div>
        <div class="display-field">
            @Html.EditorFor(model =>model.CantGen)
            @Html.ValidationMessageFor(model => model.CantGen)
        </div>
        

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Detalles", new {id = Model.EspectaculoId})
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
